home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
40.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
384b
|
19 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
int *loc;
int x=20, y=30, z;
loc=&x;
z = *loc + x + y; /* z is 70 */
*loc = 100; /* this modifies the variable 'x' */
printf("x is %d\n",x);
}